package net.lab1024.sa.admin.module.business.goods.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("product_stock")
public class ProductStock {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long productId;  // 商品ID（对应数据库product_id）
    private Integer stock;   // 库存
    private Integer version; // 乐观锁版本号
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}